package ar.edu.unicen.exa.oop.bbquery.controller.commands;

import org.puremvc.java.multicore.interfaces.ICommand;
import org.puremvc.java.multicore.interfaces.INotification;
import org.puremvc.java.multicore.patterns.command.SimpleCommand;

import ar.edu.unicen.exa.oop.bbquery.facade.AppFacade;
import ar.edu.unicen.exa.oop.bbquery.model.proxies.DataModelProxy;

public class DataSubmittedCommand extends SimpleCommand implements ICommand {

	public void execute( INotification notification )
	{
        String mydata = (String) notification.getType();		
		DataModelProxy datamodelProxy = (DataModelProxy) AppFacade.getInst().retrieveProxy(DataModelProxy.NAME);
        datamodelProxy.setData(mydata);
	}

}
